package memoryimage.models;

public class ByteUtil {
	
	public byte fromIntegerToByte(int intValue) {
		if (intValue < 127) {
			return (byte)intValue;
		}else {
			return (byte)(intValue - 255);
		}
	}
	
	/*
	 * ByteUtil is Utility Class, so not allow to instantiate
	 */
	private ByteUtil() {};
}
